const device_list = [
    {
      "device": "0089101102",
      "name": "东厢水闸（外河）"
    },
    {
      "device": "0089101104",
      "name": "沙头水闸（外河）"
    },
    {
      "device": "0089101106",
      "name": "沙尾水闸（外河）"
    },
    {
      "device": "0089101108",
      "name": "豸冈水闸（外河）"
    },
    {
      "device": "0089101110",
      "name": "苟口水闸（外河）"
    },
    {
      "device": "0089101112",
      "name": "芝山水闸（外河）"
    },
    {
      "device": "0089101114",
      "name": "坦边水闸（外河）"
    },
    {
      "device": "0089101116",
      "name": "良坑水闸（外河）"
    },
    {
      "device": "0089101118",
      "name": "牛口水闸（外河）"
    },
    {
      "device": "0089101132",
      "name": "白藤水闸（外河）"
    },
    {
      "device": "0089101134",
      "name": "西闸水闸（外河）"
    },
    {
      "device": "0089101136",
      "name": "龙田水闸（外河）"
    },
    {
      "device": "0089101138",
      "name": "塔岗水闸（外河）"
    },
    {
      "device": "0089101140",
      "name": "禾岗水闸（外河）"
    },
    {
      "device": "0089101142",
      "name": "南格水闸（外河）"
    },
    {
      "device": "0089101144",
      "name": "龙冲口水闸（外河）"
    },
    {
      "device": "0089101146",
      "name": "霞村水闸（外河）"
    },
    {
      "device": "0089101148",
      "name": "马梪水闸（外河）"
    },
    {
      "device": "0089101150",
      "name": "七围水闸（外河）"
    },
    {
      "device": "0089101152",
      "name": "鸭寮水闸（外河）"
    },
    {
      "device": "0089101154",
      "name": "横江水闸（外河）"
    },
    {
      "device": "0089101156",
      "name": "海口水闸（外河）"
    },
    {
      "device": "0089101176",
      "name": "海口闸（外河）"
    },
    {
      "device": "0089101178",
      "name": "二闸（外河）"
    },
    {
      "device": "0089101180",
      "name": "已建二闸（外河）"
    },
    {
      "device": "0089101210",
      "name": "古今水闸（外河）"
    },
    {
      "device": "0089101212",
      "name": "连台水闸（外河）"
    },
    {
      "device": "0089101101",
      "name": "东厢水闸（内河）"
    },
    {
      "device": "0089101103",
      "name": "沙头水闸（内河）"
    },
    {
      "device": "0089101105",
      "name": "沙尾水闸（内河）"
    },
    {
      "device": "0089101107",
      "name": "豸冈水闸（内河）"
    },
    {
      "device": "0089101109",
      "name": "苟口水闸（内河）"
    },
    {
      "device": "0089101111",
      "name": "芝山水闸（内河）"
    },
    {
      "device": "0089101113",
      "name": "坦边水闸（内河）"
    },
    {
      "device": "0089101115",
      "name": "良坑水闸（内河）"
    },
    {
      "device": "0089101117",
      "name": "牛口水闸（内河）"
    },
    {
      "device": "0089101131",
      "name": "白藤水闸（内河）"
    },
    {
      "device": "0089101133",
      "name": "西闸水闸（内河）"
    },
    {
      "device": "0089101135",
      "name": "龙田水闸（内河）"
    },
    {
      "device": "0089101137",
      "name": "塔岗水闸（内河）"
    },
    {
      "device": "0089101139",
      "name": "禾岗水闸（内河）"
    },
    {
      "device": "0089101141",
      "name": "南格水闸（内河）"
    },
    {
      "device": "0089101143",
      "name": "龙冲口水闸（内河）"
    },
    {
      "device": "0089101145",
      "name": "霞村水闸（内河）"
    },
    {
      "device": "0089101147",
      "name": "马梪水闸（内河）"
    },
    {
      "device": "0089101149",
      "name": "七围水闸（内河）"
    },
    {
      "device": "0089101151",
      "name": "鸭寮水闸（内河）"
    },
    {
      "device": "0089101153",
      "name": "横江水闸（内河）"
    },
    {
      "device": "0089101155",
      "name": "海口水闸（内河）"
    },
    {
      "device": "0089101175",
      "name": "海口闸（内河）"
    },
    {
      "device": "0089101177",
      "name": "二闸（内河）"
    },
    {
      "device": "0089101179",
      "name": "已建二闸（内河）"
    },
    {
      "device": "0089101209",
      "name": "古今水闸（内河）"
    },
    {
      "device": "0089101211",
      "name": "连台水闸（内河）"
    },
    {
      "device": "0089101214",
      "name": "海口村闸（外河）"
    },
    {
      "device": "0089101213",
      "name": "海口村闸（内河）"
    },
    {
      "device": "0089101251",
      "name": "那咀水库"
    },
    {
      "device": "0089101252",
      "name": "那围水库"
    },
    {
      "device": "0089101253",
      "name": "兰石水库"
    },
    {
      "device": "0089101254",
      "name": "凤飞云水库"
    },
    {
      "device": "0089101255",
      "name": "钳口水库"
    },
    {
      "device": "0089101256",
      "name": "六联水库"
    },
    {
      "device": "0089101257",
      "name": "龙岗坑水库"
    },
    {
      "device": "0089101259",
      "name": "小迳水库"
    },
    {
      "device": "0089101258",
      "name": "牛尾水库"
    },
    {
      "device": "0089101260",
      "name": "棋杆石水库"
    },
    {
      "device": "0089101261",
      "name": "公坑水库"
    },
    {
      "device": "0089101262",
      "name": "鲤鱼山水库"
    },
    {
      "device": "0089101263",
      "name": "观音堂水库"
    },
    {
      "device": "0089101264",
      "name": "三堡水库"
    },
    {
      "device": "0089101265",
      "name": "大西坑水库"
    },
    {
      "device": "0089101266",
      "name": "大田坑水库"
    },
    // {
    //   "device": "0089101274",
    //   "name": "潮莲大黄庙"
    // }
  ]

  const inDevices= (device_code)=>{
     const index =  device_list.findIndex((item,index)=>{
            return item.device==device_code
      });
      return (index!==-1)
  }

  export {inDevices,device_list}